package org.hin.programmering1.engine;

import java.awt.Point;

/**
 * A positioning/scaling class
 * 
 * @author Meanz
 */
public class Transform {

	//Local Position
	public Point position;
	//Scale
	public float scale;
	
	/**
	 * Constructor
	 */
	public Transform() {
		this.position = new Point(0, 0);
		this.scale = 1.0f;
	}
	
	public void setPosition(int x, int y) {
		position.x = x;
		position.y = y;
	}
	
	public void setPosition(Point p) {
		this.position = p; 
	}
	
	public void translate(int x, int y) {
		position.x += x;
		position.y += y;
	}
}
